Skip to content

Conversation

@daniel-richter
Copy link
Contributor

Add CI/CD workflow for cleaning up closed pull requests (remove the PR release branch)

@github-actions
Copy link

github-actions bot commented Jul 7, 2025

This change introduces a new GitHub Actions workflow for cleaning up branches after a pull request is closed. The workflow utilizes the GitHub script action to delete the reference of release branches corresponding to closed PRs. This helps in automating the cleanup process and maintaining a tidy repository environment.

Walkthrough

  • New Feature: Added a CI/CD workflow to automatically delete release branches linked to closed pull requests, enhancing repository maintenance and organization.
  • Chore: Utilized GitHub Actions for automating branch deletion tasks, reducing manual intervention and streamlining cleanup processes.

Model: gpt-4o | Prompt Tokens: 369 | Completion Tokens: 114

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's a constructive assessment of your code with AI assistance. Some ideas are forecasts, not absolute truths, so choose what fits best for your context. Your choices are paramount—AI serves as a supportive guide.
Model: gpt-4o | Prompt Tokens: 842 | Completion Tokens: 498

jobs:
clean-up:
name: Clean up
runs-on: [ubuntu-latest]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using 'runs-on' attribute with an array, use a single value directly. This reduces complexity and enhances readability as 'runs-on' is expected to have a single value for the operating system. Change runs-on: [ubuntu-latest] to runs-on: ubuntu-latest.

@daniel-richter daniel-richter marked this pull request as ready for review July 7, 2025 17:32
@daniel-richter daniel-richter merged commit dfa094c into main Jul 7, 2025
8 checks passed
@daniel-richter daniel-richter deleted the build-cleanup-workflow branch July 7, 2025 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants